package com.ruoyi.system.domain.xs;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@TableName(value ="xs_data")
@Data
public class XsItemData implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 订单来源（1淘宝，2天猫，3微信，4抖音，5线下，6内部，7其他）
     */
    private String source;

    /**
     * 订单编号
     */
    private String orderId;

    /**
     * 工号
     */
    private String jobNumber;

    /**
     * 订单金额。精确到2位小数;单位:元。如:200.07，表示:200元7分
     */
    private BigDecimal payment;

    /**
     * 接单日期
     */
    private Date payTime;

    /**
     * 完单日期
     */
    private Date endTime;

    /**
     * 订单类型
     */
    private String orderType;

    /**
     * 订单状态
     */
    private String status;

    /**
     * 订单需求
     */
    private String orderNeed;

    /**
     * 上游文件资料
     */
    private String upFile;

    /**
     * 审核者编号
     */
    private String auditorId;

    /**
     * 审核需求
     */
    private String auditorNeed;

    /**
     * 人工派单
     */
    private String manual;

    /**
     * 自动派单
     */
    private String automatic;

    /**
     * 内部生产唯一编号
     */
    private Integer produceId;

    /**
     * 接单方类型
     */
    private String acceptingType;

    /**
     * 接单人员编号
     */
    private Integer acceptingId;

    /**
     * 接单者等级
     */
    private String acceptingLevel;

    /**
     * 下游文件资料
     */
    private String downFile;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        XsItemData other = (XsItemData) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSource() == null ? other.getSource() == null : this.getSource().equals(other.getSource()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getJobNumber() == null ? other.getJobNumber() == null : this.getJobNumber().equals(other.getJobNumber()))
            && (this.getPayment() == null ? other.getPayment() == null : this.getPayment().equals(other.getPayment()))
            && (this.getPayTime() == null ? other.getPayTime() == null : this.getPayTime().equals(other.getPayTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getOrderType() == null ? other.getOrderType() == null : this.getOrderType().equals(other.getOrderType()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getOrderNeed() == null ? other.getOrderNeed() == null : this.getOrderNeed().equals(other.getOrderNeed()))
            && (this.getUpFile() == null ? other.getUpFile() == null : this.getUpFile().equals(other.getUpFile()))
            && (this.getAuditorId() == null ? other.getAuditorId() == null : this.getAuditorId().equals(other.getAuditorId()))
            && (this.getAuditorNeed() == null ? other.getAuditorNeed() == null : this.getAuditorNeed().equals(other.getAuditorNeed()))
            && (this.getManual() == null ? other.getManual() == null : this.getManual().equals(other.getManual()))
            && (this.getAutomatic() == null ? other.getAutomatic() == null : this.getAutomatic().equals(other.getAutomatic()))
            && (this.getProduceId() == null ? other.getProduceId() == null : this.getProduceId().equals(other.getProduceId()))
            && (this.getAcceptingType() == null ? other.getAcceptingType() == null : this.getAcceptingType().equals(other.getAcceptingType()))
            && (this.getAcceptingId() == null ? other.getAcceptingId() == null : this.getAcceptingId().equals(other.getAcceptingId()))
            && (this.getAcceptingLevel() == null ? other.getAcceptingLevel() == null : this.getAcceptingLevel().equals(other.getAcceptingLevel()))
            && (this.getDownFile() == null ? other.getDownFile() == null : this.getDownFile().equals(other.getDownFile()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSource() == null) ? 0 : getSource().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getJobNumber() == null) ? 0 : getJobNumber().hashCode());
        result = prime * result + ((getPayment() == null) ? 0 : getPayment().hashCode());
        result = prime * result + ((getPayTime() == null) ? 0 : getPayTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getOrderType() == null) ? 0 : getOrderType().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getOrderNeed() == null) ? 0 : getOrderNeed().hashCode());
        result = prime * result + ((getUpFile() == null) ? 0 : getUpFile().hashCode());
        result = prime * result + ((getAuditorId() == null) ? 0 : getAuditorId().hashCode());
        result = prime * result + ((getAuditorNeed() == null) ? 0 : getAuditorNeed().hashCode());
        result = prime * result + ((getManual() == null) ? 0 : getManual().hashCode());
        result = prime * result + ((getAutomatic() == null) ? 0 : getAutomatic().hashCode());
        result = prime * result + ((getProduceId() == null) ? 0 : getProduceId().hashCode());
        result = prime * result + ((getAcceptingType() == null) ? 0 : getAcceptingType().hashCode());
        result = prime * result + ((getAcceptingId() == null) ? 0 : getAcceptingId().hashCode());
        result = prime * result + ((getAcceptingLevel() == null) ? 0 : getAcceptingLevel().hashCode());
        result = prime * result + ((getDownFile() == null) ? 0 : getDownFile().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", source=").append(source);
        sb.append(", orderId=").append(orderId);
        sb.append(", jobNumber=").append(jobNumber);
        sb.append(", payment=").append(payment);
        sb.append(", payTime=").append(payTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", orderType=").append(orderType);
        sb.append(", status=").append(status);
        sb.append(", orderNeed=").append(orderNeed);
        sb.append(", upFile=").append(upFile);
        sb.append(", auditorId=").append(auditorId);
        sb.append(", auditorNeed=").append(auditorNeed);
        sb.append(", manual=").append(manual);
        sb.append(", automatic=").append(automatic);
        sb.append(", produceId=").append(produceId);
        sb.append(", acceptingType=").append(acceptingType);
        sb.append(", acceptingId=").append(acceptingId);
        sb.append(", acceptingLevel=").append(acceptingLevel);
        sb.append(", downFile=").append(downFile);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}